package chat.data;

import java.util.Observable;
import java.util.Observer;

import chat.data.log.ChatLog;
import chat.protocol.ChatProtocol;

public class ChatState extends Observable{
	private String recentMessage;
	
	public void message(String message){
		recentMessage = message;
		updateView();
	}
	public String getRecentMessage() {
		return recentMessage;
	}
	private void updateView(){
		setChanged();
		notifyObservers();
	}
}
